package com.example.springbootjson.vo;

import com.example.springbootjson.parser.KsDmpSourceDeserialize;
import com.example.springbootjson.parser.KsDmpSourceSerialize;
import com.example.springbootjson.parser.KsDmpSourceSerialize2;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

@Data
public class UserVo {
//    @JsonDeserialize(using = KsDmpSourceDeserialize.class)
    @JsonSerialize(using = KsDmpSourceSerialize.class)
    private String userName;

//    @JsonSerialize(using = KsDmpSourceSerialize.class)
    private String addr;

    private Integer age;

    private School school;

//    @JsonIgnore
    @JsonSerialize(using = KsDmpSourceSerialize2.class)
    private String schoolId;
}
